<!-- 父组件 -->
<template>
  {{ msg }}
  <Zi @fun="show"></Zi>

</template>

<script lang="ts" setup>
import { ref } from "vue";

import Zi from "@/components/zi.vue";

const msg=ref('hello')
const show  = (data) => {
  msg.value = data
}


</script>

<style scoped>

</style>